import request from '@/utils/request'

export function AnswerList(query) {
  return request({
    url: '/api/answer/',
    method: 'get',
    params: query
  })
}

// 下载查询结果
export function downloadAnswer(query) {
  return request({
    url: '/api/answer/',
    method: 'get',
    params: query,
    responseType: 'arraybuffer'
  })
}

// 下载分析结果
export function downloadAnalysisAnswer(query) {
  return request({
    url: '/api/answer/download_analysis/',
    method: 'get',
    params: query,
    responseType: 'arraybuffer'
  })
}
